import Layout from '@/layout'

export default {
  path: '/commerce',
  component: Layout,
  meta: { title: '商务管理', icon: 'el-icon-suitcase' },
  children: [
    { path: 'owner',
      component: () => import('@/views/commerce/Owner'),
      meta: { title: '货主管理', icon: 'el-icon-s-custom' }

    },
    { path: 'owner/addnew/:value',
      component: () => import('@/views/commerce/components/addnew'),
      meta: { title: { null: '新增货主',
        else: '货主修改' }},
      hidden: true
    },
    { path: 'owner/details/:value',
      component: () => import('@/views/commerce/components/details'),
      meta: { title: '货主详情' },
      hidden: true
    },
    {
      path: 'carrier',
      component: () => import('@/views/commerce/Carrier'),
      meta: { title: '承运商管理', icon: 'el-icon-s-goods' }
    }

  ]
}
